import request from '@/utils/request'

// 查询机构许可列表
export function listBusinessLicense(query) {
  return request({
    url: '/institution/businessLicense/list',
    method: 'get',
    params: query
  })
}

// 查询机构许可详细
export function getBusinessLicense(id) {
  return request({
    url: '/institution/businessLicense/' + id,
    method: 'get'
  })
}

// 新增机构许可
export function addBusinessLicense(data) {
  return request({
    url: '/institution/businessLicense',
    method: 'post',
    data: data
  })
}

// 修改机构许可
export function updateBusinessLicense(data) {
  return request({
    url: '/institution/businessLicense',
    method: 'put',
    data: data
  })
}

// 删除机构许可
export function delBusinessLicense(id) {
  return request({
    url: '/institution/businessLicense/' + id,
    method: 'delete'
  })
}
